package top.xia17.plugins.fast.common.utils;

import cn.hutool.core.lang.Snowflake;

/**
 * ID工具类
 * @author xia17
 * @date 2021/1/15 17:07
 */
public class IdUtil {

    public static final Snowflake SNOW_FLAKE = new Snowflake(1,1);

    /**
     * 获取雪花ID
     * @return /
     */
    public static Long getSnowflakeId(){
        return SNOW_FLAKE.nextId();
    }


}
